Previous Book Contents Book Index Next

Inside Macintosh: Programming With the Text Encoding Conversion Manager /
Chapter 2 - Basic Text Types Reference / Basic Text Constants


Script Manager Derivation Specifiers

For backward compatibility with earlier releases of the Mac OS, the Text Encoding Conversion Manager provides the functions UpgradeScriptInfoToTextEncoding (page 56) and RevertTextEncodingToScriptInfo (page 58) that you can use to derive Script Manager values from a text encoding or vice versa.

When using these functions, you can specify a Script Manager language code, script code, and/or font values to derive a text encoding. These three constants are defined to allow you to identify any part of the derivation you don't care about. When reverting from a text encoding to Script Manager values, the Unicode Converter returns these constants for a corresponding value it does not derive: kTextLanguageDontCare, kTextScriptDontCare, and kTextRegionDontCare.

enum {
   kTextLanguageDontCare = -128
   kTextScriptDontCare = -128
   kTextRegionDontCare= -128
   );
Constant descriptions

kTextLanguageDontCare
Indicates that language code is not provided for the derivation.
kTextScriptDontCare
Indicates that the code is not provided for the derivation.
kTextRegionDontCare
The region code is not provided for the derivation.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1997